import request from '@/utils/request'

// 查询抽奖设置列表
export function listAwardproduct(query) {
  return request({
    url: '/business/awardproduct/list',
    method: 'get',
    params: query
  })
}

// 查询抽奖设置详细
export function getAwardproduct(id) {
  return request({
    url: '/business/awardproduct/' + id,
    method: 'get'
  })
}

// 新增抽奖设置
export function addAwardproduct(data) {
  return request({
    url: '/business/awardproduct',
    method: 'post',
    data: data
  })
}

// 修改抽奖设置
export function updateAwardproduct(data) {
  return request({
    url: '/business/awardproduct',
    method: 'put',
    data: data
  })
}

// 删除抽奖设置
export function delAwardproduct(id) {
  return request({
    url: '/business/awardproduct/' + id,
    method: 'delete'
  })
}
